Ektron Reference


>>Helping Users Navigate Your Web Site > Using Search > Understanding Search Server Controls > Deploying Site Search Server Controls

Deploying Site Search Server Controls

Use the Site Search server controls to let site visitors search your Web site.

SiteSearchInputView - accepts user input of search terms

SiteSearchController - takes input from SiteSearchInputViewcontrol and returns search results

SiteSearchResultsView - shows search results; you can modify the results' display, paging, etc.

To provide search capabilities to your Web site content, insert all three controls onto an .aspx template. Because the search functions are managed by separate controls, you can place a search field and button in a one section of a page, and the results in another.

Also, unless you want to use the default paging properties (which show only ten results), insert an EktronUI Pager control on the page to manage the paging of the search results.

Prerequisite: Search server controls were added to the Visual Studio Toolbox. See Adding Search Server Controls into Visual Studio.

If you drag and drop controls from the VS Toolbox, the necessary register statements are automatically added to the page. If you copy and paste the sample code, add the following register statement for templated controls:

<%@ Register assembly="Ektron.Cms.Framework.UI.Controls" namespace="Ektron.Cms.Framework.UI.Controls" tagprefix="ektron" %>

For Ektron UI controls, use this register statement:

<%@ Register assembly="Ektron.Cms.Framework.UI.Controls.EktronUI" namespace="Ektron.Cms.Framework.UI.Controls.EktronUI" tagprefix="ektronUI" %>

The tag prefix can be anything as long as it matches the control's prefix.

Here is a basic template showing the three controls.

This section also contains the following topics.

SiteSearchInputView Server Control

SearchController Server Control

SearchResultsView Server Control

SiteSearch Model

See Also: Understanding Search Server Controls


Ektron Version 8.5, Doc. Rev. 2.0 (Dec. 2011)
Visit the
Ektron Dev Center at http://dev.ektron.com 1–866–4–EKTRON
Ektron Documentation, © 2011 Ektron, Inc.